package io.renren.service;

import io.renren.common.utils.PageUtils;
import io.renren.entity.BalanceTopupEntity;
import io.renren.form.CallbackForm;

import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * 用户充值提现申请表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-09-12 13:56:12
 */
public interface BalanceTopupService extends IService<BalanceTopupEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 充值提交
	 * 
	 * @param userId
	 * @param amount
	 * @param paymentType
	 */
	void submitDeposit(Long userId, Double amount, Integer paymentType);

	/**
	 * 充值回调
	 * 
	 * @param form
	 */
	void callbackDeposit(CallbackForm form);

	/**
	 * 提现提交
	 * 
	 * @param userId
	 * @param amount
	 * @param paymentType
	 */
	void submitWithdraw(Long userId, Double amount, Integer paymentType);

	/**
	 * 提现回调
	 * 
	 * @param form
	 */
	void callbackWithdraw(CallbackForm form);
}
